﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class Parent
{
    public int id = 1;
}
class Child : Parent
{

}

class Programjicheng
{
    static void Mainjicheng()
    {
        Parent p= new Parent();
        Child child = new Child();
        Console.WriteLine(child.id);
        child.id++;
        Console.WriteLine(child.id);

        Console.WriteLine(p.id);
    }
}
